package net.wanho.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.wanho.po.OperLog;
import net.wanho.service.OperLogService;
import net.wanho.mapper.OperLogMapper;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.concurrent.Executors;

/**
* @author Administrator
* @description 针对表【oper_log(系统操作日志)】的数据库操作Service实现
* @createDate 2024-11-06 11:08:35
*/
@Service
public class OperLogServiceImpl extends ServiceImpl<OperLogMapper, OperLog>
    implements OperLogService{

    /**
     * 该方法为异步执行
     */
    @Async
    @Override
    public void add(OperLog operLog) {
        System.out.println("=============================================================="+Thread.currentThread().getName());

        this.baseMapper.insert(operLog);
    }
}




